package com.mystudy.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * 标题：
 * 作者：何处是归程
 * 时间：2020/4/17 - 19:28
 */
@EnableDiscoveryClient
@SpringBootApplication
public class ConsumerConsulMain80 {
	public static void main(String[] args) {
		SpringApplication.run(ConsumerConsulMain80.class, args);
	}

	@LoadBalanced
	@Bean
	public RestTemplate getRestTemplate() {
		return new RestTemplate();
	}
}
